package com.cleaningcloud.cld.domain;

import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 保险人员关联对象 cld_insurance_staff
 *
 * @author cleaningcloud
 * @date 2024-10-23
 */
public class CldInsuranceStaff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 保险人员关联ID */
    private Long insuranceStaffId;

    /** 保险ID */
    @Excel(name = "保险ID")
    private Long insuranceId;

    /** 人员ID */
    @Excel(name = "人员ID")
    private Long staffId;

    /** 被替换人员ID */
    @Excel(name = "被替换人员ID")
    private Long replaceStaffId;

    /** 操作状态(1新增2替换3解绑) */
    @Excel(name = "操作状态(1新增2替换3解绑)")
    private Long operaStatus;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operaTime;

    /** 原保险ID */
    @Excel(name = "原保险ID")
    private Long oldInsuranceId;

    /** 新保险ID */
    @Excel(name = "新保险ID")
    private Long newInsuranceId;

    /** 0无效1有效 */
    @Excel(name = "0无效1有效")
    private Long flag;

    public void setInsuranceStaffId(Long insuranceStaffId)
    {
        this.insuranceStaffId = insuranceStaffId;
    }

    public Long getInsuranceStaffId()
    {
        return insuranceStaffId;
    }
    public void setInsuranceId(Long insuranceId)
    {
        this.insuranceId = insuranceId;
    }

    public Long getInsuranceId()
    {
        return insuranceId;
    }
    public void setStaffId(Long staffId)
    {
        this.staffId = staffId;
    }

    public Long getStaffId()
    {
        return staffId;
    }
    public void setReplaceStaffId(Long replaceStaffId)
    {
        this.replaceStaffId = replaceStaffId;
    }

    public Long getReplaceStaffId()
    {
        return replaceStaffId;
    }
    public void setOperaStatus(Long operaStatus)
    {
        this.operaStatus = operaStatus;
    }

    public Long getOperaStatus()
    {
        return operaStatus;
    }
    public void setOperaTime(Date operaTime)
    {
        this.operaTime = operaTime;
    }

    public Date getOperaTime()
    {
        return operaTime;
    }
    public void setOldInsuranceId(Long oldInsuranceId)
    {
        this.oldInsuranceId = oldInsuranceId;
    }

    public Long getOldInsuranceId()
    {
        return oldInsuranceId;
    }
    public void setNewInsuranceId(Long newInsuranceId)
    {
        this.newInsuranceId = newInsuranceId;
    }

    public Long getNewInsuranceId()
    {
        return newInsuranceId;
    }
    public void setFlag(Long flag)
    {
        this.flag = flag;
    }

    public Long getFlag()
    {
        return flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("insuranceStaffId", getInsuranceStaffId())
                .append("insuranceId", getInsuranceId())
                .append("staffId", getStaffId())
                .append("replaceStaffId", getReplaceStaffId())
                .append("operaStatus", getOperaStatus())
                .append("operaTime", getOperaTime())
                .append("oldInsuranceId", getOldInsuranceId())
                .append("newInsuranceId", getNewInsuranceId())
                .append("flag", getFlag())
                .toString();
    }
}
